<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>订单详情</title>
		<link type="text/css" rel="stylesheet" href="/fontsawesome/css/font-awesome.css"/>
		<link type="text/css" rel="stylesheet" href="/css/style.css"/>
	</head>
	<body>
		<div class="main_box">
			<div class="cont_box">
				<!--订单号-->
				<div class="user_top">订单号：<span th:text="${orderId}"></span></div>
				<!--订单商品-->
				<div class="user_top order_top">订单商品：</div>
				<table border="0" cellspacing="0" cellpadding="0" class="table">
					<thead>
						<tr>
							<th>序号</th>
							<th>商品名称</th>
							<th>商品数量</th>
							<th>商品价格</th>
							<th>金额</th>
							<th>备注</th>
						</tr>
					</thead>
					<tbody>
						<tr th:each="t,line : ${shoppingCartList}">
							<td><span th:text="${line.count}"></span></td>
							<td><span th:text="${t.market.commodity.name }"></span></td>
							<td><span th:text="${t.number }"></span></td>
							<td><span th:text="${t.unitPrice }"></span></td>
							<td><span th:text="${t.price }"></span></td>
							<td><span th:text="${t.state} == 1?'有退货记录':''"></span></td>
						</tr>
					</tbody>
					<tfoot>
						<tr>
							<td>共<span th:text="${shoppingCartList.size()}"></span>项商品</td>
							<td colspan="5">订单金额（￥）：<span th:text="${(cashInfo.orderMoney - money)}<0?${cashInfo.orderMoney}+'（原价：'+${money}+')':${cashInfo.orderMoney}"></span></td>
						</tr>
					</tfoot>
				</table>
			</div>
		</div>
		<!--javascript include-->
		<script src="/js/jquery-2.2.1.min.js"></script>
		<script src="/js/jquery.dataTables.min.js"></script>
		<script src="/js/bootstrap-datepicker.js"></script>
		<script src="/js/jquery.validate.min.js"></script>
		<script src="/js/jquery.form.min.js"></script>
		<script src="/js/other.js"></script>
		<script>
			$(function(){
				$("body").other({formId:"#editPro_form",formUrl:"#"});//formUrl 表单请求地址
			});
		</script>
	</body>
</html>